package com.yzjs.enumeration;


import java.util.HashMap;
import java.util.Map;

public enum SignType {
    MD5,
    RSA,
    RSA2;

    private static Map<String, SignType> values = new HashMap();

    private SignType() {
    }

    public static SignType from(String strValue) {
        SignType value = (SignType)values.get(strValue);
        return value != null ? value : null;
    }

    public static SignType from(String strValue, SignType defaultValue) {
        SignType value = from(strValue);
        return value == null ? defaultValue : value;
    }

    public String toString() {
        return this.name();
    }

    static {
        SignType[] var0 = values();
        int var1 = var0.length;

        for(int var2 = 0; var2 < var1; ++var2) {
            SignType value = var0[var2];
            values.put(value.name(), value);
        }

    }
}

